package com.szqhyxj.youxiangju.biz.card.cardApply.goweb;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.webkit.WebView;

import com.szqhyxj.youxiangju.BaseActivity;
import com.szqhyxj.youxiangju.R;
import com.szqhyxj.youxiangju.sys.components.NavigationBar;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by leung on 2018/11/9.
 */

public class GoWebActivity extends BaseActivity implements NavigationBar.NavigationBarListener{

    private static String bankUrl;
    @BindView(R.id.navigationBar)
    NavigationBar navigationBar;
    @BindView(R.id.goweb)
    WebView goweb;

    public static void start(Activity activity, String url) {
        Intent intent = new Intent();
        intent.setClass(activity, GoWebActivity.class);
        activity.startActivity(intent);
        bankUrl = url;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_go_web);
        ButterKnife.bind(this);
        navigationBar.setNavigationBarListener(this);
        goweb.loadUrl(bankUrl);
    }

    @Override
    public void navigationLeft() {
        finish();
    }

    @Override
    public void navigationRight() {

    }
}
